body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: whitesmoke;
    margin: 0;
    padding: 0;
    font-family: calibri;
    flex-direction: column;
}

#dark {
    position: absolute;
    right: 50px;
    font-size: 30px;
    color: #0a5180;
    top: 20px;
    transform: rotate(40deg);
    cursor: pointer;
}
#dark:hover {
    color: rgb(35, 116, 170);
}
#light {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    font-size: 30px;
    color: rgb(255, 200, 0);
}
#light:hover {
    color: rgb(248, 224, 66);
}
.container {
    width: 90%;
    max-width: 750px;
    height: auto;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    padding: 20px 30px;
    position: relative;
}
.container.disable :where(.sideA, .save-img) {
    opacity: 0.5;
    pointer-events: none;
}
.wrapper {
    display: flex;
    flex-direction: column;
}
.sideA, .sideB {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.filters {
    border: 1px solid gray;
    padding: 0 15px;
    height: auto;
    border-radius: 5px;
    padding-bottom: 20px;
}
.filter-btn button {
    padding: 10px;
    font-size: 16px;
    width: calc(50% - 6px);
    background: white;
    border: 1px solid gray;
    cursor: pointer;
    border-radius: 5px;
}
.filter-btn button:nth-child(2), .filter-btn button:nth-child(4) {
    margin-left: 8px;
}
.filter-btn button:nth-child(3), .filter-btn button:nth-child(4) {
    margin-top: 12px;
}
.fnv {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 10px 0;
}
.fnv span {
    display: inline-block;
}
input[type="range"] {
    width: 100%;
    height: 5px;
    accent-color: green;
    border: none;
    cursor: pointer;
}
.rotate button {
    font-size: 16px;
    padding: 10px;
    width: calc(25% - 6px);
    margin-left: 2px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid gray;
    background-color: white;
} 
.rotate button:hover {
    background-color: whitesmoke;
}
.reset-filter, .choose-img, .save-img {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid gray;
    border-radius: 5px;
    color: gray;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
}
.reset-filter:hover {
    background: whitesmoke;
}
.choose-img {
    background-color: rgb(0, 0, 174);
    color: white;
    text-align: right;
    margin-left: 0;
    border: 1px solid rgb(0, 0, 174);
}
.choose-img:hover {
    background-color: rgb(0, 0, 255);
    border: 1px solid rgb(0, 0, 255);
}
button.active {
    background-color: blue;
    border: 1px solid blue;
    color: white;
}
.save-img {
    background-color: green;
    color: white;
    border: 1px solid green;
}
.save-img:hover {
    background-color: green;
    border: 1px solid green;
}
.sideB {
    padding-left: 0;
    position: relative;
}
.preview {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 323px;
    overflow: hidden;
}
.preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.file-input {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
}

/* Media Queries */
@media (min-width: 600px) {
    .wrapper {
        flex-direction: row;
    }
    .sideA, .sideB {
        width: 40%;
    }
    .sideB {
        width: 60%;
        padding-left: 20px;
    }
}
